﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="ListRoles.aspx.cs" Inherits="lcs.Web.SysManage.ListRoles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../css/myStyle.css" rel="stylesheet" />
<style type="text/css">
        .style1
        {
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellspacing="1" >
        <tr>
            <td class="style1" colspan="2">
                角色管理
            </td>
        </tr>
        <tr>
            <td style="width: 200px; height: 20px;">
            </td>
            <td style="width: 500px">
            </td>
        </tr>
        <tr>
            <td style="height: 20px;" colspan="2">
                <asp:GridView ID="gv_data" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" OnPageIndexChanging="gv_data_PageIndexChanging" 
                    OnRowCommand="gv_data_RowCommand" OnRowDataBound="gv_data_RowDataBound" 
                    Width="100%" BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" GridLines="None" PageSize="20">
                    <PagerSettings FirstPageText="【第一页】" LastPageText="【最后一页】" NextPageText="下一页" 
                        PreviousPageText="上一页" />
                    <Columns>
                        <asp:TemplateField HeaderText="操作">
                            <ItemStyle Wrap="False" />
                            <HeaderStyle Wrap="False" />
                            <ItemTemplate>
                                &nbsp;
                                <asp:LinkButton ID="lbn_check" runat="server" 
                                    CommandArgument='<%# Bind("roles_id") %>' CommandName="up" 
                                    ForeColor="Blue" Visible="False">修改</asp:LinkButton>
                                &nbsp;
                                <asp:LinkButton ID="lbn_delete" runat="server" 
                                    CommandArgument='<%# Bind("roles_id") %>' CommandName="del" ForeColor="Blue" OnClientClick="return confirm('删除角色将会使所有此角色下的用户权限清除，确定要删除吗？')" Visible="False">删除</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton1" runat="server" 
                                    CommandArgument='<%# Bind("roles_id") %>' CommandName="dist" ForeColor="Blue">分配权限</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="roles_name" HeaderText="角色名" />
                        <asp:BoundField DataField="roles_descripition" HeaderText="角色简介" />
                    </Columns>
                    <PagerStyle Font-Size="14pt" Font-Underline="True" />
                     <PagerStyle CssClass="mypager" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style="width: 200px; height: 20px;">
                &nbsp;</td>
            <td style="width: 500px">
                &nbsp;</td>
        </tr>
       </table>
       
</asp:Content>
